package com.vhall.component.entity.rbac.vo;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


/**
 * @author dalong
 * @date 2021-05-14 16:25
 */
@Data
public class MenuListRspVO<T> {

    private static final long serialVersionUID = -1301518023993670346L;

    @JsonProperty("menu_id")
    private Integer menuId;
    @ApiModelProperty("菜单名称")
    private String name;
    @ApiModelProperty("菜单链接")
    private String url;
    @ApiModelProperty("父ID")
    private Integer pid;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("修改时间")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;
    @ApiModelProperty("创建时间")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;
    /**
     * 子菜单
     */
    private List<T> children;
}
